<?php
require_once('../src/functions.php');
require_once('../src/alerte_mail.class.php');
require_once('../src/annonce.class.php');

$ann = new annonce(1);
npr($ann);

$alerte = new alerte_mail();

$ret1 = $alerte->checkResult($ann->type_transaction->id, $ann->type_bien->id, $ann->localisation->id, $ann->prix, $ann->surface, $ann->piece);
npr($ret1);

$ret2 = $alerte->checkResult(DEFAULT_ID, DEFAULT_ID, DEFAULT_ID, 10, 10, 1);
npr($ret2);
